package work.fram;

import java.util.List;

//用于不同组之间的通信
public abstract class GroupsWrapper {

    private List<FileGroup> fileGroups;

    public void setFileGroups(List<FileGroup> fileGroups) {
        this.fileGroups = fileGroups;
        for (FileGroup group : fileGroups) {
            group.setGroupsWrapper(this);
        }
    }

    public List<FileGroup> getFileGroups() {
        return fileGroups;
    }

    public abstract boolean beforeEnter();

    public abstract void afterExist();


}
